<?php
	include 'DBController.php';

	$content = $_GET['synonym'];
	$meaningIndex = $_GET['meaningIndex'];
	$meaningId = $_GET['meaningId'];
	$wordId = $_GET['wordId'];
	updateWordEditTime($wordId);
	
	$synonym = new Synonym();
	$synonym->setContent($content);
	
	$synonym = addSynonym($synonym, $meaningId);
	
	$synonymId = $synonym->synonymId;
	
	echo $content."||".$synonymId."||".$meaningIndex;
?>